package com.distribution.system.utils.zop;


import lombok.Getter;
import lombok.ToString;

/**
 *
 * @author pengqiang
 * @date 2017/9/6
 */
@Getter
@ToString
public class ReqObj<T> {
    /**
     * 报文头
     * 放置系统参数
     */
    private ReqHeadBean head;

    /**
     * 报文体
     * 放置业务参数
     */
    private T body;

    public void setHead(ReqHeadBean head) {
        this.head = head;
    }

    public <X> X getBody(Class<X> cls) {
        return (X) body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
